package com.ruoyi.wms.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 库存信息对象 wms_inventory
 * 
 * @author ruoyi
 * @date 2024-01-01
 */
public class WmsInventory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 库存ID */
    private Long inventoryId;

    /** 租户ID */
    @Excel(name = "租户ID")
    private Long tenantId;

    /** 货主ID */
    @Excel(name = "货主ID")
    private Long ownerId;

    /** 供应商ID */
    @Excel(name = "供应商ID")
    private Long supplierId;

    /** 仓库ID */
    @Excel(name = "仓库ID")
    private Long warehouseId;

    /** 库位ID */
    @Excel(name = "库位ID")
    private Long locationId;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Long itemId;

    /** 批次号 */
    @Excel(name = "批次号")
    private String batchNo;

    /** 容器号 */
    @Excel(name = "容器号")
    private String containerNo;

    /** 生产日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生产日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date productionDate;

    /** 过期日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "过期日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expirationDate;

    /** 可用数量 */
    @Excel(name = "可用数量")
    private BigDecimal availableQty;

    /** 冻结数量 */
    @Excel(name = "冻结数量")
    private BigDecimal frozenQty;

    /** 总数量 */
    @Excel(name = "总数量")
    private BigDecimal totalQty;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 库存状态：字典值 wms_inventory_status */
    @Excel(name = "库存状态", dictType = "wms_inventory_status")
    private String status;

    public void setInventoryId(Long inventoryId) 
    {
        this.inventoryId = inventoryId;
    }

    public Long getInventoryId() 
    {
        return inventoryId;
    }
    public void setTenantId(Long tenantId) 
    {
        this.tenantId = tenantId;
    }

    public Long getTenantId() 
    {
        return tenantId;
    }
    public void setOwnerId(Long ownerId) 
    {
        this.ownerId = ownerId;
    }

    public Long getOwnerId() 
    {
        return ownerId;
    }

    public void setSupplierId(Long supplierId) 
    {
        this.supplierId = supplierId;
    }

    public Long getSupplierId() 
    {
        return supplierId;
    }
    public void setWarehouseId(Long warehouseId) 
    {
        this.warehouseId = warehouseId;
    }

    public Long getWarehouseId() 
    {
        return warehouseId;
    }
    public void setLocationId(Long locationId) 
    {
        this.locationId = locationId;
    }

    public Long getLocationId() 
    {
        return locationId;
    }
    public void setItemId(Long itemId) 
    {
        this.itemId = itemId;
    }

    public Long getItemId() 
    {
        return itemId;
    }
    public void setBatchNo(String batchNo) 
    {
        this.batchNo = batchNo;
    }

    public String getBatchNo() 
    {
        return batchNo;
    }
    public void setContainerNo(String containerNo) 
    {
        this.containerNo = containerNo;
    }

    public String getContainerNo() 
    {
        return containerNo;
    }
    public void setProductionDate(Date productionDate) 
    {
        this.productionDate = productionDate;
    }

    public Date getProductionDate() 
    {
        return productionDate;
    }
    public void setExpirationDate(Date expirationDate) 
    {
        this.expirationDate = expirationDate;
    }

    public Date getExpirationDate() 
    {
        return expirationDate;
    }
    public void setAvailableQty(BigDecimal availableQty) 
    {
        this.availableQty = availableQty;
    }

    public BigDecimal getAvailableQty() 
    {
        return availableQty;
    }
    public void setFrozenQty(BigDecimal frozenQty) 
    {
        this.frozenQty = frozenQty;
    }

    public BigDecimal getFrozenQty() 
    {
        return frozenQty;
    }
    public void setTotalQty(BigDecimal totalQty) 
    {
        this.totalQty = totalQty;
    }

    public BigDecimal getTotalQty() 
    {
        return totalQty;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("inventoryId", getInventoryId())
            .append("tenantId", getTenantId())
            .append("ownerId", getOwnerId())
            .append("supplierId", getSupplierId())
            .append("warehouseId", getWarehouseId())
            .append("locationId", getLocationId())
            .append("itemId", getItemId())
            .append("batchNo", getBatchNo())
            .append("containerNo", getContainerNo())
            .append("productionDate", getProductionDate())
            .append("expirationDate", getExpirationDate())
            .append("availableQty", getAvailableQty())
            .append("frozenQty", getFrozenQty())
            .append("totalQty", getTotalQty())
            .append("unit", getUnit())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }

    // 关联查询字段
    /** 货主名称 */
    private String ownerName;

    /** 仓库名称 */
    private String warehouseName;

    /** 库位编码 */
    private String locationCode;

    /** 商品编码 */
    private String itemCode;

    /** 商品名称 */
    private String itemName;

    /** 供应商名称 */
    private String supplierName;

    public String getOwnerName() {
        return ownerName;
    }

    public void setOwnerName(String ownerName) {
        this.ownerName = ownerName;
    }

    public String getWarehouseName() {
        return warehouseName;
    }

    public void setWarehouseName(String warehouseName) {
        this.warehouseName = warehouseName;
    }

    public String getLocationCode() {
        return locationCode;
    }

    public void setLocationCode(String locationCode) {
        this.locationCode = locationCode;
    }

    public String getItemCode() {
        return itemCode;
    }

    public void setItemCode(String itemCode) {
        this.itemCode = itemCode;
    }

    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }
}